<?php

class Kd_Data_Dcl_Expression_Fn_Arithmetic extends Kd_Data_Dcl_Expression_Fn_Base {

    private $_left = NULL;
    private $_right = NULL;
    private $_flag = NULl;

    public function __construct($left, $right, $flag) {
        parent::__construct();
        $this->setLeft($left)->setRight($right)->setFlag($flag);
    }

    public function getLeft() {
        return $this->_left;
    }
    public function setLeft($value) {
        $this->_left = is_string($value)? new Kd_Data_Dcl_Expression_Field($value): $value;
        return $this;
    }

    public function getRight() {
        return $this->_right;
    }
    public function setRight($value) {
        $this->_right = $value;
        return $this;
    }

    public function getFlag() {
        return $this->_flag;
    }
    public function setFlag($value) {
        $this->_flag = $value;
        return $this;
    }

    public function getFunctionType() {
        return 'arithmetic';
    }
}